<div class="col-md-9">
    <a id="language_ch" href="javascript:gourl('ch');">简体中文</a>|
    <a id="language_en" href="javascript:gourl('en');">English</a>
</div>
<div class="col-md-3 text-right">
    <i class="fas fa-desktop"></i>
    <a href="/admin" target="_blank">
        #if((!C.getRequest().getRequestURI().equals("/index_ch")) && (C.get('language')==null || C.get('language')=="en"))
            Working platform entrance
        #else
            工作平台入口
        #end
    </a>
</div>
<script src="js/updateurl.js"></script>
<script>
    
    function gourl(language){
        
        if(language=='ch'){
            if(window.location.pathname == '/'){
                location.href="/index_ch"
                return;
            }
            location.href=changeURLArg(window.location.href,'language','ch');
        }else{
            if(window.location.pathname == '/index_ch'){
                location.href='/'
                return;
            }
            location.href=changeURLArg(window.location.href,'language','en');
        }
        
    }
    
</script>